﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="VersionList.ascx.cs"
    Inherits="NCS.Module.CMS.Admin.WorkFlow.VersionList" %>
<%@ Register Assembly="NCS.Library" Namespace="NCS.Library.Controls"
    TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<table id="Table1" cellpadding="3" cellspacing="0" width="100%">
    <tr>
        <td>
            <asp:Label ID="lblUpdateStatus" runat="server"></asp:Label><br /></td>
    </tr>
    <tr>
        <td colspan="2">
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td colspan="2" style="width: 100%">
                        <cc1:GridView ID="dtgVersion" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                            BorderColor="Gainsboro" BorderStyle="Solid" BorderWidth="1px" CellPadding="2"
                            CssClass="Grid" PageSize="15" Width="100%" OnRowDataBound="dtgVersion_RowDataBound"
                            OnRowCommand="dtgVersion_RowCommand" EnableViewState="False">
                            <AlternatingRowStyle CssClass="Grid_Raw2" />
                            <RowStyle CssClass="Grid_Raw1" />
                            <HeaderStyle Font-Bold="True" CssClass="Grid_Top"></HeaderStyle>
                            <Columns>
                                <asp:BoundField DataField="Content_Version_ID" HeaderText="ID">
                                    <headerstyle width="0%"></headerstyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="Content_ID" Visible="False" />                                
                                <asp:TemplateField HeaderText="T&#234;n b&#224;i">
                                    <headerstyle horizontalalign="Center"></headerstyle>
                                    <itemtemplate>
									<asp:HyperLink ID="lnkHeadline" runat="server"></asp:HyperLink>
								
</itemtemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Ng&#224;y viết" DataField="Content_CreateDate" />
                                <asp:TemplateField HeaderText="Checkout by">
                                    <headerstyle horizontalalign="Center"></headerstyle>
                                    <itemtemplate>
								<asp:Label id=lblUserCheckOut runat=server></asp:Label>
						
</itemtemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Thao t&#225;c">
                                    <itemstyle horizontalalign="Center"></itemstyle>
                                    <headerstyle horizontalalign="Center" width="150px"></headerstyle>
                                    <itemtemplate>
									<asp:Button ID="cmdPost" runat="server" CssClass="Button" CommandName="Publish"
										Text="Đăng lên" CommandArgument='<%# Eval("Content_Version_ID") %>'></asp:Button>									
									<asp:Button ID="cmdDel" runat="server" CssClass="Button" CommandName="deletecontent"
										Text="Xóa" CommandArgument='<%# Eval("Content_Version_ID") %>'></asp:Button><br />									
								
</itemtemplate>
                                </asp:TemplateField>
                            </Columns>
                        </cc1:GridView>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
